package com.so.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 公告类型（1通知 2公告）
 *
 * @author system
 */
@Getter
@AllArgsConstructor
public enum NoticeType implements IEnum<String> {

    inform("1","通知"),
    TYPE_BUTTON("2","notice");

    /**
     * codes
     */
    @EnumValue
    @JsonValue
    private final String code;

    /**
     * 描述
     */
    private final String info;

    @Override
    public String getValue() {
        return code;
    }
}
